package com.neuedu.his.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.his.entity.Register;
import com.neuedu.his.mapper.RegisterMapper;

@Service
@Transactional
public class RegisterServiceImpl implements RegisterService{

	@Autowired
	private RegisterMapper dao;
	@Override
	public List<Register> selectAll(Register u) {
		// TODO Auto-generated method stub
		return dao.selectAll(u);
	}

	@Override
	public List<Register> selectBycasenumber(Register u) {
		// TODO Auto-generated method stub
		return dao.selectBycasenumber(u);
	}

	@Override
	public int add(Register u) {
		// TODO Auto-generated method stub
		return dao.add(u);
	}

	@Override
	public int update(Register u) {
		// TODO Auto-generated method stub
		return dao.update(u);
	}

	@Override
	public int delete(Register u) {
		// TODO Auto-generated method stub
		return dao.delete(u);
	}

	@Override
	public int updatevisitstate(Register u) {
		// TODO Auto-generated method stub
		return dao.updatevisitstate(u);
	}

	
}
